<?php

namespace App;

class Admin extends Base
{
    protected $table = 'admin';

    protected $fillable = ['account', 'login_password', 'is_enable'];

    const IS_ENABLE = [
        0 => '禁用',
        1 => '启用',
    ];

    public function isEnable()
    {
        return self::IS_ENABLE[$this->is_enable];
    }

}
